<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/shop/shopFollow/list?shopId=${requestScope.shop.shopId}" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>店铺名称：${requestScope.shop.shopName}</td>
					<td>店铺编号：${requestScope.shop.shopNum}</td>
					<td>联系人：${requestScope.shop.contacts}</td>
					<td>联系电话：${requestScope.shop.contactNumber}</td>
					<td colspan="2">所在区域（省市区县）：${requestScope.shop.areaName}</td>
				</tr>
				<tr>
					<td>合同编号：${requestScope.shop.ctno}</td>
					<td>签约日期：<fmt:formatDate pattern="yyyy-MM-dd" value="${record.sgtm}" /></td>
					<td>店面级别：${requestScope.shop.stle}</td>
					<td>店铺布局：${requestScope.shop.layout}</td>
					<td>是否样板店：${requestScope.shop.template==0?'否':''}${requestScope.shop.template==1?'是':''}</td>
					<td>备注：${requestScope.shop.remk}</td>
				</tr>

				<tr>
					<td>招商经理：${requestScope.shop.imname}</td>
					<td>区域经理：${requestScope.shop.rgname}</td>
					<td>运营督导：${requestScope.shop.opname}</td>
					<td>开业老师：${requestScope.shop.trname}</td>
					<td>增加时间：<fmt:formatDate value="${requestScope.shop.addTime}" pattern='yyyy-MM-dd'/></td>
					<td>操作人：${requestScope.shop.operatorname}</td>
					<td>门店状态：${requestScope.shop.state==1?"新客户":""}${requestScope.shop.state==2?"门店建设中":""}${requestScope.shop.state==3?"门店配货中":""}${requestScope.shop.state==4?"常规客户":""}</td>
					<td>店铺状态：${requestScope.shop.shopState==0?"停用":""}${requestScope.shop.shopState==1?"启用":""}</td>
				</tr>
				<%-- <tr>
					<td>店铺名称：${requestScope.shop.shopName}</td>
					<td style="width: 50px;">店铺编号：${requestScope.shop.shopNum}</td>
					<td style="width: 124px;">联系人：${requestScope.shop.contacts}</td>
					<td style="width: 116px;">联系电话： ${requestScope.shop.contactNumber}</td>
					<td style="width: 105px;">所在区域（省市区县）：${requestScope.shop.areaName}</td>
					<td style="width: 75px;">添加时间：<fmt:formatDate value="${requestScope.shop.addTime}" pattern='yyyy-MM-dd'/></td>
				</tr>
				<tr>
					<td style="width: 165px;">门店状态：${requestScope.shop.state==1?"新客户":""}${requestScope.shop.state==2?"门店建设中":""}${requestScope.shop.state==3?"门店配货中":""}${requestScope.shop.state==4?"常规客户":""}</td>
					<td style="width: 75px;">店铺状态：${requestScope.shop.shopState==0?"停用":""}${requestScope.shop.shopState==1?"启用":""}</td>
				</tr> --%>
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="/shop/shopFollow/shopFollowexport">
				<li><a href="${pageContext.request.contextPath}/shop/shopFollow/shopFollowexport" target="dwzExport" targetType="navTab" title="是要导出这些记录吗?" class="icon"><span>导出EXCEL</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/shop/shop/list">
				<li><a target="navTab" class="goBackBtn" title="客户信息" href="${pageContext.request.contextPath}/shop/shop/list" rel="${pageContext.request.contextPath}/shop/shop/list"><span>返回</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/shop/shopFollow/toInsert">
				<li><a class="add" href="${pageContext.request.contextPath}/shop/shopFollow/toInsert?shopId=${requestScope.shop.shopId}" rel="insert" target="dialog" width="820" height="460" mask="true"><span>添加</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/shop/shopFollow/delete">
				<li><a class="delete" href="${pageContext.request.contextPath}/shop/shopFollow/delete" rel="id" target="selectedTodo" title="确定要删除吗？" warn="请最小选择一条记录" mask="true"><span>批量删除</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" targetType="navTab" asc="asc" desc="desc" width="100%" layoutH="162">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="id" class="checkboxCtrl"></th>
				<%-- <th orderField="shopname" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'shopname'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>客户名称</th> --%>
				<th orderField="employeename" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'employeename'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>跟进人</th>
				<th orderField="fwtm" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'fwtm'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>跟进时间</th>
				<th orderField="fwop" width="150" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'fwop'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>跟进操作</th>
				<th orderField="remk"   width="150" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'remk'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>备注</th>
				<!-- <th>添加时间</th> -->
				<!-- <th>操作人</th> -->
				<!-- <th>是否删除 0否1是</th> -->
				<th width="140">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:if test="${requestScope.shopFollow != null }">
				<c:forEach var="record" items="${requestScope.shopFollow}" varStatus="status">
					<tr ondblclick="openDetails(this)" target="dialog" href="${pageContext.request.contextPath}/shop/shopFollow/toUpdate?id=${record.id}" title="编辑">
						<td><c:if test="${record.del!=3}">
								<input name="id" value="${record.id}" type="checkbox">
							</c:if></td>
						<%-- <td>${record.shopname}</td> --%>
						<td>${record.employeename}</td>
						<td><fmt:formatDate pattern="yyyy-MM-dd" value="${record.fwtm}" /></td>
						<td>${record.fwop}</td>
						<td>${record.remk}</td>
						<td>
							<shiro:hasPermission name="/shop/shopFollow/toUpdate">
								<a title="编辑" target="dialog" width="820" height="460" href="${pageContext.request.contextPath}/shop/shopFollow/toUpdate?id=${record.id}" class="editBtn" mask="true"><span>编辑</span></a>
							</shiro:hasPermission> 
							<c:if test="${record.del!=3}">
								<shiro:hasPermission name="/shop/shopFollow/delete">
									<a title="确定要删除吗？" mask="true" target="ajaxTodo" href="${pageContext.request.contextPath}/shop/shopFollow/delete?id=${record.id}" class="deleteBtn"><span>删除</span></a>
								</shiro:hasPermission>
							</c:if></td>
					</tr>
				</c:forEach>
			</c:if>
		</tbody>
	</table>
	<!-- 分页条 -->
	<%-- <%@include file="/WEB-INF/page/inc/pageBar.jsp"%> --%>
</div>